package com.xopencode.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

/**
 * @author Mcb
 * @date 2022/4/28
 * @apiNote
 */
public class Test {

    public static void main(String[] args) {
        List<User> list = new ArrayList<>();
        for (int i = 0; i < 100; i++) {
            list.add(new User());
        }
        list.parallelStream().map(l-> l.buy()).forEach(System.out::println);
    }
}
